package com.hangim.hangimsia.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.hangimsia.common.domain.IdEntity;

/**
 * <p>
 * 作者库
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-20
 */
@TableName("base_author")
public class BaseAuthor extends IdEntity {

    /**
     * 朝代
     */
    private String dynasty;
    /**
     * 名
     */
    private String name;
    /**
     * 字
     */
    private String nickname;
    /**
     * 说明
     */
    private String description;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private Long updatedBy;
    /**
     * 删除人
     */
    @TableField("deleted_at")
    private Date deletedAt;
    /**
     * 删除时间
     */
    @TableField("deleted_by")
    private Long deletedBy;

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Long getDeletedBy() {
        return deletedBy;
    }

    public void setDeletedBy(Long deletedBy) {
        this.deletedBy = deletedBy;
    }

    @Override
    public String toString() {
        return "BaseAuthor{" +
        ", id=" + id +
        ", dynasty=" + dynasty +
        ", name=" + name +
        ", nickname=" + nickname +
        ", description=" + description +
        ", active=" + active +
        ", createdAt=" + createdAt +
        ", createdBy=" + createdBy +
        ", updatedAt=" + updatedAt +
        ", updatedBy=" + updatedBy +
        ", deletedAt=" + deletedAt +
        ", deletedBy=" + deletedBy +
        "}";
    }
}
